package com.atguigu.chapter05

object TestFunction2 {

  def main(args: Array[String]): Unit = {
    val f = foo

    var f1 = foo _
    f1()

    var f2:()=>Int = foo

    f2()
  }

  def foo():Int = {
    println("foo...")
    1
  }
}
